<template>
  <div class="movie">
    <el-menu mode="horizontal" router>
      <el-menu-item index="hotmovie">正在热映</el-menu-item>
      <el-menu-item index="recentmovie">即将上映</el-menu-item>
      <el-menu-item index="classmovie">经典影片</el-menu-item>
    </el-menu>
    <router-view></router-view>
  </div>
</template>

<script lang="ts" setup>
import { onMounted, ref } from 'vue';
import {GetMovieList } from '../../api/index.js'
 onMounted(()=>{
  const res = GetMovieList()
  console.log(res)
 })
</script>

<style lang="scss" scoped>
.movie{
  border: 1px solid #000;
}
</style>